package archive

import (
	"compress/gzip"
	"io"
)

var Gzip = &compressGzip{}

type compressGzip struct{}

func (receiver *compressGzip) Reader(reader io.Reader) (io.Reader, error) {
	gzipReader, err := gzip.NewReader(reader)

	return gzipReader, err
}
func (receiver *compressGzip) Writer(writer io.Writer) io.Writer {
	gzipWriter := gzip.NewWriter(writer)

	return gzipWriter
}
